﻿@using Nop.Core
@using Nop.Core.Infrastructure
@using Nop.Core.Domain.Customers
@using Telerik.Web.Mvc.UI;

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@ViewBag.Title | SpotsHUB Express Delivery | eCommerce Solutions</title>
    <meta name="description" content="SpotsHUB provides the simplest and fastest shipping and online shopping option for the Greater Vancouver area. Use our services to your advantage for an amazing low rate!" />
    <meta name="keywords" content="SpotsHUB, SpotsEXPRESS, Business Solutions, Same-Day Delivery, Online Shopping, E-Commerce, Fast, Simple, User-Friendly, Greater Vancouver Regional District, Cheap Delivery Option, Online Order, Logistics Services" />
    <meta name="p:domain_verify" content="64d22bd769e42a26d22912df4b5cd43f" />

    <link rel="apple-touch-icon" sizes="57x57" href="/content/images/favicon/apple-touch-icon-57x57.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="60x60" href="/content/images/favicon/apple-touch-icon-60x60.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="72x72" href="/content/images/favicon/apple-touch-icon-72x72.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="76x76" href="/content/images/favicon/apple-touch-icon-76x76.png?v=LbbWkEmr9b">
    <link rel="icon" type="image/png" href="/content/images/favicon/favicon-32x32.png?v=LbbWkEmr9b" sizes="32x32">
    <link rel="icon" type="image/png" href="/content/images/favicon/favicon-16x16.png?v=LbbWkEmr9b" sizes="16x16">
    <link rel="manifest" href="/content/images/favicon/manifest.json?v=LbbWkEmr9b">
    <link rel="shortcut icon" href="/favicon.ico?v=LbbWkEmr9b">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">

    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href='//fonts.googleapis.com/css?family=Roboto:400,400italic,300,700' rel='stylesheet' type='text/css'>
    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
    <script>window.jQuery || document.write('<script src="/Scripts/jquery-1.11.2.min.js"><\/script>')</script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
    <script>window.jQuery.ui || document.write('<script src="/Scripts/jquery-ui.min.js"><\/script>')</script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script>if (typeof ($.fn.modal) === 'undefined') { document.write('<script src="/Scripts/bootstrap.min.js"><\/script>') }</script>
    <script src="/Scripts/SpotsHUB.common.js"></script>
    @{
        var isAuthenticated = EngineContext.Current.Resolve<IWorkContext>().CurrentCustomer.IsRegistered();
        Html.AppendCssFileParts("~/Content/css/SpotsHUB.myHUB.min.css");
        Html.AppendCssFileParts("~/Content/css/SpotsHUB.common.min.css");
        Html.AppendCssFileParts("~/Content/css/bootstrap-datetimepicker.min.css");

        Html.AppendScriptParts("~/Scripts/modernizr.js");
        Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
        Html.AppendScriptParts("~/Scripts/spotshub.commerce.js");
        Html.AppendScriptParts("~/Scripts/bootstrap-datetimepicker.min.js");
        Html.AppendScriptParts("~/Scripts/moment.min.js");
    }
    @(Html.Telerik().StyleSheetRegistrar()
    .DefaultGroup(group => group
        .Add("telerik.common.min.css")
        .Add("telerik.spotshub.min.css")
        ))
    @(Html.Telerik().ScriptRegistrar()
            .jQuery(false)
            .jQueryValidation(false)
    )
    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
    @*
        @Html.AddAzureInsightsScript()
        @StackExchange.Profiling.MiniProfiler.RenderIncludes()
    *@
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-42486105-1', 'auto');
        ga('send', 'pageview');
    </script>

</head>

<body>
    <header id="header">
        <div class="container-fluid">
            <div class="row">
            <div class="col-ms-6 col-md-4">
                <div class="header-logo">
                    <a href="@Url.RouteUrl("HomePage")" class="logo-image"><img class="img-responsive" src="/Content/images/spotshub-new-logo.png"></a>
                </div>
            </div>
            <div class="col-ms-6 col-md-4 col-md-offset-4">
                <nav>
                    @Html.Action("HeaderLinks", "Common", new { area="Commerce",isCheckout = ViewBag.IsCheckout })
                </nav>
            </div>
            <div class="clear"></div>
            <div class="col-md-8 header-search-wrapper">
                <div class="header-search">
                    @Html.Action("SearchBox", "Catalog", new { area = "Commerce", Cid = Request.QueryString["Cid"] })
                </div>
            </div>
            <div class="clear"></div>
            </div>
        </div>
    </header>
    <article>
        @if (ViewBag.MyHUB == true || ViewBag.CustomPage == true)
        {
            @RenderBody()
        }
        else
        {
            if (IsSectionDefined("top"))
            {
                @RenderSection("top")
            }
            <div id="main">
                <div class="container">
                    @RenderBody()
                </div>
            </div>
        }
    </article>

    <footer>
        @if (ViewBag.MyHUB != true)
        {
            @Html.Action("FooterBadge", "Common", new { area = "Commerce" })
        }
        @Html.Action("Footer", "Common", new { area = "Commerce" })

    </footer>

</body>
</html>